// eslint.config.js
import antfu from '@antfu/eslint-config'

export default antfu({
  vue: {
    overrides: {
      'vue/block-order': ['error', {
        order: [['template', 'script'], 'style'],
      }],
    },
  },
  stylistic: {
    overrides: {
      'antfu/top-level-function': 'off',
      // 遵循大括号约定
      'curly': ['error', 'all'],
      // 强制块的大括号一致
      // 'brace-style': ['error', '1tbs', { allowSingleLine: true }],
      'brace-style': 'off',
    },
  },
})
